import request from '@/utils/request'

/**
 * 供应商信息分页查询
 * @param {查询条件} data
 */
export function pageBaseSupplier(query) {
	return request({
		url: 'BaseManage/BaseSupplier/pageList',
		method: 'get',
		params: query,
	})
}

/**
 * 新增供应商信息
 * @param data
 */
export function addBaseSupplier(data) {
	return request({
		url: 'BaseManage/BaseSupplier',
		method: 'post',
		data: data,
	})
}
/**
 * 修改供应商信息
 * @param data
 */
export function updateBaseSupplier(data) {
	return request({
		url: 'BaseManage/BaseSupplier',
		method: 'PUT',
		data: data,
	})
}
/**
 * 获取供应商信息详情
 * @param {Id}
 */
export function getBaseSupplier(id) {
	return request({
		url: 'BaseManage/BaseSupplier/' + id,
		method: 'get'
	})
}

/**
 * 删除供应商信息
 * @param {主键} pid
 */
export function delBaseSupplier(pid) {
	return request({
		url: 'BaseManage/BaseSupplier/delete',
		method: 'POST',
		data: pid
	})
}

